package com.chinamobile.maps.dao;

import java.util.List;

import com.chinamobile.maps.orm.Users;

/**
 * @ClassName:   UsersDAO
 * @Description: TODO
 * @author:      frankwong
 * @date:        2012-9-25 下午10:58:38
 *
 */
public interface IUsersDAO {

	/**
	 * @param user
	 * @return
	 */
	public void addUser(Users user);

	/**
	 * @param id
	 * @return
	 */
	public void delUser(int id);
	
	/**
	 * @param user
	 * @return
	 */
	public void delUser(Users user);

	/**
	 * @param user
	 * @return
	 */

	public void updateUser(Users user);

	/**
	 * @return
	 */

	public List<Users> getUsers();

	/**
	 * @param id
	 * @return
	 */

	public Users getUserByID(int id);

	/**
	 * @param username
	 * @return
	 */

	public Users getUserByName(String username);
	
	public List<Users> getObjects(String hsql);
}
